#include <stdio.h>

int main(int argc, char *argv[])
{
    char search = 'e';
    char str[] = "haaaello";

    int i = 0;

    while(str[i] != search) {
        i++;
    }

    printf("str[%d] == e\n", i);

    return 0;
}
